﻿@model Guline.Web.JXAccount.Models.UserFullInfo
@{
    ViewBag.Title = "Tìm kiếm tài khoản";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var notfound = ViewBag.notfound;

}
<a href="@Url.Action("Index")">Về danh sách</a>
 <form method="get">
     @if(Model!=null)
     {
<p>Tìn kiếm thông tin tài khoản: <input type="search" name="search" value="@Model.Username" /> <input type="submit" /></p>
     }
     else
     {  <p>Tìn kiếm thông tin tài khoản: <input type="search" name="search" /> <input type="submit" /></p>
         <h3>@notfound</h3>
     }

</form>
@if (Model != null)
{
 using (Html.BeginForm("EditInfo", "Administrator", FormMethod.Post, new { id="frmlogin"}))
     {
         <h3>#Xem và chỉnh sửa tài khoản</h3>
        <div class="central">             
                <p> @Html.ValidationSummary()  </p>          
          <div class="form_reg">
            <div class="form_reg_left">Tên đăng nhập</div>
            <div class="form_reg_right">
             @Html.TextBoxFor(m => m.Username, new { id="regusername",@readonly="readonly"})  <br />    @Html.ValidationMessageFor(m => m.Username)
            </div>  <div style="clear:both"></div>
           
          </div>
            <div class="form_reg">
            <div class="form_reg_left">Khóa tài khoản</div>
            <div class="form_reg_right">
              @Html.CheckBoxFor(m => m.KhoaTaiKhoan) <br />  @Html.ValidationMessageFor(m => m.KhoaTaiKhoan)
            </div>  <div style="clear:both"></div>
           
          </div>
          <div class="form_reg">
            <div class="form_reg_left">Mật khẩu</div>
            <div class="form_reg_right">
              @Html.PasswordFor(m => m.pass1) <br />  @Html.ValidationMessageFor(m => m.pass1)
            </div>  <div style="clear:both"></div>
           
          </div>
          <div class="form_reg">
            <div class="form_reg_left">Mật khẩu cấp 2</div>
            <div class="form_reg_right">
               @Html.PasswordFor(m => m.pass2) <br />@Html.ValidationMessageFor(m => m.pass2)
            </div>  <div style="clear:both"></div>
             
          </div>
          <div class="form_reg">
            <div class="form_reg_left">Email</div>
            <div class="form_reg_right">
               @Html.TextBoxFor(m => m.Email)  <br />  @Html.ValidationMessageFor(m => m.Email)
            </div>
              <div style="clear:both"></div>
           
          </div>
          <div class="form_reg">
            <div class="form_reg_left">Câu hỏi bí mật</div>
            <div class="form_reg_right">
                @Html.DropDownList("ask")
             
            </div>
            <div id="quest_error" class="report_reg"></div>
          </div>
          <div class="form_reg">
            <div class="form_reg_left">Câu trả lời</div>
            <div class="form_reg_right">
              @Html.TextBoxFor(m => m.answer)<br /> @Html.ValidationMessageFor(m => m.answer)
            </div>      <div style="clear:both"></div>
         
          </div>
          <div class="form_reg">
            <div class="form_reg_left">Số điện thoại</div>
            <div class="form_reg_right">
               @Html.TextBoxFor(m => m.Phone) <br /> 
                @Html.ValidationMessageFor(m => m.Phone)
            </div> 
            
          </div>
               <div class="form_reg">
            <div class="form_reg_left">nExtPoint</div>
            <div class="form_reg_right">
               @Html.TextBoxFor(m => m.nExtPoint) <br /> 
                @Html.ValidationMessageFor(m => m.nExtPoint)
            </div> 
            
          </div>
            <div class="form_reg">
            <div class="form_reg_left">nExtPoint1</div>
            <div class="form_reg_right">
               @Html.TextBoxFor(m => m.nExtPoint1) <br /> 
                @Html.ValidationMessageFor(m => m.nExtPoint1)
            </div> 
            
          </div>
            <div class="form_reg">
            <div class="form_reg_left">nExtPoint2</div>
            <div class="form_reg_right">
               @Html.TextBoxFor(m => m.nExtPoint2) <br /> 
                @Html.ValidationMessageFor(m => m.nExtPoint2)
            </div> 
            
          </div>
            <div class="form_reg">
            <div class="form_reg_left">nExtPoint3</div>
            <div class="form_reg_right">
               @Html.TextBoxFor(m => m.nExtPoint3) <br /> 
                @Html.ValidationMessageFor(m => m.nExtPoint3)
            </div> 
            
          </div>
            <div class="form_reg">
            <div class="form_reg_left">nExtPoint4</div>
            <div class="form_reg_right">
               @Html.TextBoxFor(m => m.nExtPoint4) <br /> 
                @Html.ValidationMessageFor(m => m.nExtPoint4)
            </div> 
            
          </div>
            <div class="form_reg">
            <div class="form_reg_left">nExtPoint5</div>
            <div class="form_reg_right">
               @Html.TextBoxFor(m => m.nExtPoint5) <br /> 
                @Html.ValidationMessageFor(m => m.nExtPoint5)
            </div> 
            
          </div>
            <div class="form_reg">
            <div class="form_reg_left">nExtPoint6</div>
            <div class="form_reg_right">
               @Html.TextBoxFor(m => m.nExtPoint6) <br /> 
                @Html.ValidationMessageFor(m => m.nExtPoint6)
            </div> 
            
          </div>
             <div class="form_reg">
            <div class="form_reg_left">nExtPoint7</div>
            <div class="form_reg_right">
               @Html.TextBoxFor(m => m.nExtPoint7) <br /> 
                @Html.ValidationMessageFor(m => m.nExtPoint7)
            </div> 
            
          </div>
        </div>
       
       
        <div class="bor_bottom"></div>
        <div class="btn_action">
       <input type="submit" value="Lưu" />
        </div>
         <h3>[Log] - Nạp thẻ đúng</h3>
@Html.Raw(ViewBag.thedung)
<hr />

<h3>[Log] - Nạp thẻ sai</h3>
 @Html.Raw(ViewBag.thesai)
<hr />
     }
}

   
